package com.hzwq.demo2.role.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hzwq.demo2.permission.entity.Permission;
import com.hzwq.demo2.role.entity.Role;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author zhaochunlin
 * @since 2020-08-13
 */
public interface IRoleService extends IService<Role> {

    List<Role> listByUserId(Integer userId);

    void saveRoleAndPermission(Role role);

    int selectCountById(Integer id);

    List<Permission> selectUrl(Integer id);
}
